package org.example.springmessage.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.springmessage.domain.User;

import java.util.*;

@Mapper
public interface UserMapper {
    User login(String username);

    boolean register(User user);

    User getUserById(Integer id);

    void update(User user);

    List<User> getAllUsers();

    boolean updatePhoto(User user);
}
